package Factory.AbstarctFactoy;

public class Client {
    public static void main(String[] args){
        System.out.println("===============小米系列产品============");
        //创建小米工厂
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        //生产小米手机产品
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        //产品属性
        iphoneProduct.callup();
        iphoneProduct.sendSMS();
        //小米路由器
        IRouteProduct iRouterProduct = xiaomiFactory.iRouteProduct();
        iRouterProduct.openwifi();

    }
}
